// AdditionProblem.java
public class AdditionProblem extends Problem {
    private int operand1;
    private int operand2;

    public AdditionProblem(int operand1, int operand2) {
        super(operand1 + " + " + operand2 + " = ?", 'A');
        this.operand1 = operand1;
        this.operand2 = operand2;
    }

    @Override
    public void display() {
        System.out.println(getQuestion());
    }

    public int getOperand1() {
        return operand1;
    }

    public int getOperand2() {
        return operand2;
    }
}
